﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;

namespace MALRECrewrite
{
    /// <summary>
    /// Interaktionslogik für "App.xaml"
    /// </summary>
    public partial class App : Application
    {
        private static ViewModels.ViewModel _DataModel;
        public static ViewModels.ViewModel DataModel
        {
            get
            {
                if (_DataModel == null)
                    _DataModel = new ViewModels.ViewModel();
                return _DataModel;
            }
            set
            {
                if (value != _DataModel)
                {
                    _DataModel = value;
                }
            }
        }

        private static ViewModels.SequelsViewModel _SequelsModel;
        public static ViewModels.SequelsViewModel SequelsModel
        {
            get
            {
                if (_SequelsModel == null)
                    _SequelsModel = new ViewModels.SequelsViewModel();
                return _SequelsModel;
            }
            set
            {
                if (value != _SequelsModel)
                {
                    _SequelsModel = value;
                }
            }
        }
    }
}
